|
button4 2.2.1
|
Button 4 Click Example. More...
Macros | |
| #define | MIKROBUS_POSITION_BUTTON4 MIKROBUS_1 |
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
Button 4 Click Example.
This example demonstrates the use of the Button 4 Click board by initializing the device and detecting the button state changes. It logs whether the button is pressed (active) or released (reset).
The demo application is composed of two sections :
Initializes the logger and the Button 4 Click driver.
Monitors the button state and logs whether the button is active (pressed) or reset (released) when a state change is detected.
| #define MIKROBUS_POSITION_BUTTON4 MIKROBUS_1 |
| void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
| void application_task | ( | void | ) |
| int main | ( | void | ) |